package com.top.up.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("tb_user")
@ApiModel(value = "user", description = "用户信息")
public class UserEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(name = "openId", value = "微信用户唯一标识")
    @TableField("openId")
    private String openId;

    @ApiModelProperty(name = "nickName", value = "用户昵称")
    @TableField("nickName")
    private String nickName;

    @ApiModelProperty(name = "perName", value = "姓名")
    @TableField("perName")
    private String perName;

    @ApiModelProperty(name = "avatarUrl", value = "头像图片URL")
    @TableField("avatarUrl")
    private String avatarUrl;

    @ApiModelProperty(name = "gender", value = "性别标识：[0：未知、1：男、2：女]", example = "2")
    @TableField("gender")
    private String gender;

    @ApiModelProperty(name = "country", value = "用户所在国家")
    @TableField("country")
    private String country;

    @ApiModelProperty(name = "province", value = "用户所在省份")
    @TableField("province")
    private String province;

    @ApiModelProperty(name = "city", value = "用户所在城市")
    @TableField("city")
    private String city;

    @ApiModelProperty(name = "unionId", value = "用户在开放平台的唯一标识符")
    @TableField("unionId")
    private String unionId;
}
